package com.mini.cn.goods.servlet.ws;

import com.mini.cn.goods.servlet.WebSocketService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * Created with IntelliJ IDEA.
 * User: fly
 * Date: 2021-04-05
 * Time: 8:30 上午
 */
@Slf4j
@Service
public class ServerRun{

    @PostConstruct
    public void init(){
        log.info("ServerRun service start...");
        WebSocketService.INSTANCE.startWsService("/miniGoods/ws",6666);
    }
}
